package app.modules.security.persistence.mapper;

import app.modules.security.dto.biz.AssignedFunctionDTO;
import jasmine.framework.database.mybatisplus.mapper.BaseMapperEx;
import jasmine.security.rbac.model.SecFunction;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author mh.z
 */
public interface FunctionMapper extends BaseMapperEx<SecFunction> {

    /**
     * 查询指定用户的所有分配的功能
     *
     * @param userId
     * @return
     */
    List<AssignedFunctionDTO> listAssignedFunctionsByUserId(@Param("userId") Long userId);
}
